package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class ResultBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1376575664090111180L;
	private String desc ;
	private String error ;
	private int result;
	private String message ;
	private String token ;
	private String point_role_id ;
	private int action ;
	public int getAction() {
		return action;
	}
	public String getPoint_role_id() {
		return point_role_id;
	}
	public String getToken() {
		return token;
	}
	public String getMessage() {
		return message;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, ResultBean.class);
		}
		return null;
	}

}
